import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index";


// 引入组件
import element from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import {createPinia} from 'pinia'

const pinia = createPinia();

/**  挂载全局事件总线  **/
import mitt from 'mitt'

const _window = window as any
_window.eventBus = mitt();


const app = createApp(App)
app.use(router)
app.use(element)
app.use(pinia)
// 也可以在代理中使用全局事件总线
// app.config.globalProperties.$eventBus = mitt();
app.mount('#app')
